//
//  SelecctAddress.h
//  ios-supplier
//
//  Created by Benlai on 15/8/21.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SelecctAddressDS : NSObject

@property (nonatomic, assign) NSUInteger address_id;
@property (nonatomic, assign) NSUInteger ID;
@property (nonatomic, assign) NSUInteger is_default;
@property (nonatomic, assign) NSUInteger shop_id;
@property (nonatomic, assign) NSUInteger city_id;
@property (nonatomic, strong) NSString *city_name;
@property (nonatomic, strong) NSString *address_name;
@property (nonatomic, strong) NSString *create_at;
@property (nonatomic, strong) NSString *label_name;
@property (nonatomic, strong) NSString *receiver;
@property (nonatomic, strong) NSString *receiver_phone;
@property (nonatomic, strong) NSString *update_at;
@property (nonatomic, strong) NSString *address_detail;
@property (nonatomic, assign) NSInteger regionID;
@property (nonatomic, strong) NSString *region_name;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;
+ (NSURLSessionDataTask *)loadAddressList:(void (^)(NSArray *addressList, NSError *error))block;
+ (NSURLSessionDataTask *)addReceiveAddress:(void (^)(BOOL isSuccess, NSString *message, NSError *error))block receiveAddress:(SelecctAddressDS*)receiveAddress;
+ (NSURLSessionDataTask *)updateReceiveAddress:(void (^)(BOOL isSuccess, NSString *message, NSError *error))block receiveAddress:(SelecctAddressDS*)receiveAddress;
@end
